 <!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>{$Think.config.site.title} - 销量详情</title>

    <meta name="keywords" content="{$Think.config.site.keywords}">

    <link href="{$Think.config.site.resource_url}css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/animate.min.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/style.min.css?v=4.0.0" rel="stylesheet">

</head>
<style>
#listtable .fa{
    cursor:pointer;
    color:#1ab394;
    margin-right:1em;
}

.text-r{text-align: right;}
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
      
      <div class="row">
          <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>销量详情【{$goods.goods_name}（{$goods.brand_name}）】</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-12">
                                <div class="input-group pull-right">
                                <form action="{:url('salesdetail',['goods_id'=>$goods['goods_id']])}" method="get" enctype="application/x-www-form-urlencoded">
                                <div class="input-group">
                                    <input type="text" placeholder="买家名/店铺名" class="input-sm form-control" value="{$Think.get.keywords ?? ''}" name="keywords">
                                    <span class="input-group-btn">
                                    <button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                                </div>
                                </form>
                                </div>
                            </div>
                            
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped" id="listtable">
                                <thead>
                                    <tr>
                                        <th width="150">订单号</th>
                                        <th width="250">订单时间</th>
                                        <th>买家信息</th>
                                        <th class="text-r">商品总价</th>
                                        <th class="text-r">订单总价</th>
                                        <th class="text-r">购买数量</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="list" id="vo"}
                                    <tr data-id="{$vo.order_id}" >
                                    	<td>{$vo.order_no}</td>
                                    	<td>下单时间：{$vo.create_time}<br/>支付时间：{$vo.pay_time}</td>
                                    	<td>{$vo.receiver_name} ({$vo.shop_name}) {$vo.receiver_mobile}<br />{$vo.receiver_pcd} {$vo.receiver_address}</td>
                                    	<td class="text-r">商品总价：￥{$vo.goods_money}<br />订单运费：￥{$vo.shipping_money}</td>
                                    	<td class="text-r">订单总价：￥{$vo.order_money}<br />支付金额：￥{$vo.pay_money}</td>
                                    	<td class="text-r">{$vo.sales}</td>
                                    </tr>
                                   {/volist}
                                </tbody>
                            </table>
                        </div>
                        <div>{$list->render()}</div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <script src="{$Think.config.site.resource_url}js/jquery.min.js?v=2.1.4"></script>
    <script src="{$Think.config.site.resource_url}js/bootstrap.min.js?v=3.3.5"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/peity/jquery.peity.min.js"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/iCheck/icheck.min.js"></script>
    <script src="{$Think.config.site.resource_url}js/plugins/layer/layer.js"></script>
    <script src="{$Think.config.site.common_resource_url}js/majax.js"></script>
</body>

</html>
<script>

</script>